<template>
  <div>
    <h2 style="text-align: center">您的词汇测试量结果为：{{this.$store.getters.getResult}}</h2>
  </div>
</template>

<script>
export default {
  name: "Result",
  mounted() {
    const tmp = 'category=CET4&phase=&right_ranks=88%2C444%2C861%2C1272%2C1678%2C2097%2C2707%2C3325%2C4285&word_ranks=3%2C88%2C204%2C273%2C301%2C435%2C444%2C556%2C652%2C716%2C748%2C861%2C915%2C995%2C1047%2C1132%2C1272%2C1299%2C1412%2C1482%2C1545%2C1678%2C1746%2C1855%2C2002%2C2029%2C2097%2C2260%2C2375%2C2442%2C2557%2C2707%2C2843%2C2910%2C3037%2C3204%2C3325%2C3522%2C3605%2C3920%2C3960%2C4285%2C4404%2C4831%2C5117%2C5316%2C5943%2C6198%2C7367%2C8661'
    const res = this.$qs.parse(tmp)
    console.log(res)

    const list = [3,88,204,273,301,435,444,556,652,716,748,861,915,995,1047,1132,1272,1299,1412,1482,1545,1678,1746,1855,2002,2029,2097,2260,2375,2442,2557,2707,2843,2910,3037,3204,3325,3522,3605,3920,3960,4285,4404,4831,5117,5316,5943,6198,7367,8661]
    let data = {
      'category': 'CET4',
      'phase': '',
      'right_ranks': [88,444,861,1272,1678,2097,2707,3325,4285].toString(),
      'word_ranks': list.toString()
    }
    console.log(data)
    console.log(this.$qs.stringify(data))
  }
}
</script>

<style scoped>

</style>
